package com.hxzy.service;

import com.hxzy.dto.BountyOrderDto;
import com.hxzy.entity.BountyOrder;
import com.hxzy.entity.PageBean;

import java.util.List;

public interface BountyOrderService {
    //查询全部悬赏令
    List<BountyOrder> selectAll();

    //发布悬赏令
    boolean insertBounty(BountyOrder bountyOrder);

    //撤销悬赏金
    boolean deleteBounty(List<Long> ids);

    //根据id查询悬赏令
    BountyOrder selectById(Long id);

    //修改悬赏令
    boolean updateBounty(BountyOrder bountyOrder);

    //条件分页查询
    PageBean<BountyOrderDto> selectByPageAndCondition(int currentPage, int pageSize, BountyOrder bountyOrder);

    void updateStatus(Long id, int status);

}
